import React, {Component} from 'react'
import {Button,DatePicker} from 'antd'
import { SearchOutlined } from '@ant-design/icons';

class Home extends Component {
    constructor(props) {
        super(props);
        this.state = {  };
    }

    onChange = (date, string) => {
        console.log(date, string)
    }
    render() { 
        return (
           <div>这是首页

            <br/>
            <br/>
            
            <Button type="primary">Primary</Button>
            <br/>
            <br/>
            
            <Button type="primary" icon={<SearchOutlined />}>
            Search
            </Button>
            <br/>
            <br/>
            
            <DatePicker onChange={this.onChange} />
           </div>
           
        );
    }
}

export default Home;